package com.ge.modules.api.service;

import com.ge.modules.entity.TbCommodityEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品
 * 
 * @author lanyonglin
 * @email www.baidu.com
 * @date 2018-04-11 17:29:31
 */
public interface TbCommodityService {
	
	TbCommodityEntity queryObject(TbCommodityEntity tbCommodityEntity);

	List<TbCommodityEntity> queryList(TbCommodityEntity tbCommodityEntity);

	List<TbCommodityEntity> queryListObject(TbCommodityEntity tbCommodityEntity);

	List<TbCommodityEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(TbCommodityEntity commodity);
	
	void update(TbCommodityEntity commodity);
	
	void delete(Integer id);
	
	void deleteBatch(Integer[] ids);

	void updateBatch(Integer[] ids);

//	TbCommodityEntity getByCode(String commoditycode);
}
